package com.im.adapter;

import android.content.Context;
import android.view.View;

import com.core.sdk.ui.adapter.MyBaseAdapter;
import com.core.sdk.ui.holder.BaseViewHolder;
import com.im.R;
import com.im.holder.SmackMessageHolder;
import com.im.model.XmppMessage;

public class SmackMessageAdapter extends MyBaseAdapter<XmppMessage, Void> {

	private String me;
	public SmackMessageAdapter(Context act,String me) {
		super(act);
		this.me = me;
	}

	@Override
	protected void onInitViewType() {
		addViewType(XmppMessage.class, R.layout.item_message);
	}

	@Override
	protected BaseViewHolder<XmppMessage, Void> onCreateViewHolder(View view,Context act) {
		return new SmackMessageHolder(view, me,act);
	}

	@Override
	protected void onDestory() {

	}

}
